package com.wiegand.content.contents.projectcontent {
	import flash.filters.GlowFilter;
	import com.wiegand.Configuration;
	import com.caurina.transitions.Tweener;
	import com.wiegand.util.ColorRectangle;
	import flash.display.Sprite;

	/**
	 * @author kwiegand
	 */
	public class ProjectDetails extends Sprite {
		private var _background : Sprite;
		
		public function ProjectDetails() {
			init();
		}
		
		private function init() : void {
			_background = ColorRectangle.create(0x000000,1,550,350);
			_background.filters = [ new GlowFilter(0x000000,.3,10,10,1) ];
			addChild(_background);
			
			x=Configuration.getInstance().stage.stageWidth+Configuration.BORDER;
			y=int(Math.round(Configuration.getInstance().stage.stageHeight*0.75))-height+Configuration.BORDER;
		}

		public function updateData( project:XMLList ):void{
		
		}
		
		public function open(delay:Number=0):void{
			Tweener.removeTweens(this);
			Tweener.addTween(this,{x:Configuration.getInstance().stage.stageWidth-this.width-Configuration.BORDER,delay:delay,time:1,transition:"easeoutback"});
		}
		
		public function close(delay:Number=0):void{
			Tweener.removeTweens(this);
			Tweener.addTween(this,{x:Configuration.getInstance().stage.stageWidth+Configuration.BORDER,delay:delay,time:.5,transition:"easeinback"});
		}
		
		public function resize(h:int) : void {

		}
		
		public function destroy() : void {
			Tweener.removeTweens(this);
			removeChild(_background);
		}		
		
	}
}
